-
-
Notifications
You must be signed in to change notification settings - Fork 465
feat(android): Add ApplicationStartInfo API support for Android 15+ #5056
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Semver Impact of This PR🟡 Minor (new features) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨
Bug Fixes 🐛
Internal Changes 🔧Deps
Other
Other
🤖 This preview updates automatically when you update the PR. |
Instructions and example for changelogPlease add an entry to Example: ## Unreleased
### Features
- Add ApplicationStartInfo API support for Android 15+ ([#5056](https://github.com/getsentry/sentry-java/pull/5056))If none of the above apply, you can opt out of this check by adding |
Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| fcec2f2 | 357.47 ms | 447.32 ms | 89.85 ms |
| ee747ae | 374.71 ms | 455.18 ms | 80.47 ms |
| 1564554 | 323.06 ms | 336.68 ms | 13.62 ms |
| 27d7cf8 | 369.82 ms | 422.62 ms | 52.80 ms |
| fcec2f2 | 314.96 ms | 373.66 ms | 58.70 ms |
| 951caf7 | 323.66 ms | 392.82 ms | 69.16 ms |
| abf451a | 332.82 ms | 403.67 ms | 70.85 ms |
| 674d437 | 355.28 ms | 504.18 ms | 148.90 ms |
| ee747ae | 554.98 ms | 611.50 ms | 56.52 ms |
| 2387c2c | 317.04 ms | 354.60 ms | 37.56 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| fcec2f2 | 1.58 MiB | 2.12 MiB | 551.50 KiB |
| ee747ae | 1.58 MiB | 2.10 MiB | 530.95 KiB |
| 1564554 | 1.58 MiB | 2.20 MiB | 635.33 KiB |
| 27d7cf8 | 1.58 MiB | 2.12 MiB | 549.42 KiB |
| fcec2f2 | 1.58 MiB | 2.12 MiB | 551.50 KiB |
| 951caf7 | 1.58 MiB | 2.13 MiB | 558.77 KiB |
| abf451a | 1.58 MiB | 2.20 MiB | 635.29 KiB |
| 674d437 | 1.58 MiB | 2.10 MiB | 530.94 KiB |
| ee747ae | 1.58 MiB | 2.10 MiB | 530.95 KiB |
| 2387c2c | 1.58 MiB | 2.13 MiB | 559.54 KiB |
📜 Description
Adds support for Android 15+ (API 35) ApplicationStartInfo API to collect detailed app startup timing data and create a custom transaction with enriched
AppStartMetricsspans.Key Features:
ActivityManager.addApplicationStartInfoCompletionListener()to capture startup data when current launch completesapp.start.infoand nameapp.start.{reason}(e.g.,app.start.launcher)app.start.bind_application- Time from fork to bind applicationapp.start.application_oncreate- Time from fork to Application.onCreateapp.start.ttid- Time to initial display (first frame)app.start.ttfd- Time to full display (fully drawn)start.reason,start.type(cold/warm/hot),start.launch_modeImplementation Details:
SentryAndroidOptions.setEnableApplicationStartInfo(boolean)(disabled by default)💡 Motivation and Context
Implements #6228
💚 How did you test it?
📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps